// 队伍
export const TeamFormDialog = {
  name: "TeamData",
  // 弹窗的title 和 button 配置
  dialogConfig: {
    title: "队伍派遣单",
    isShow: false,
    btnList: [
      {
        name: "下发",
        id: "submit",
        type: "primary",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  // 折叠面板title
  titleConfig: [
    {
      title: "信息来源",
      name: "1",
      slot: "slot1"
    },
    {
      title: "申请信息",
      name: "2",
      slot: "slot2"
    },
    {
      title: "需求明细表",
      name: "3",
      slot: "slot3"
    },
    {
      title: "省公司派遣信息",
      name: "4",
      slot: "slot4",
      level: 1,
      btnList: [
        // {
        //   name: "队伍台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "TeamData",
        //   codeType: "see",
        //   index: 1
        // },
        {
          name: "队伍选择",
          type: "primary",
          size: "mini",
          code: "TeamData",
          index: 1
        },
        {
          name: "队员选择",
          type: "primary",
          size: "mini",
          code: "TeamData",
          index: 2
        }
      ]
    },
    {
      title: "地市级派遣信息",
      name: "5",
      slot: "slot5",
      level: 2,
      btnList: [
        // {
        //   name: "队伍台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "TeamData",
        //   codeType: "see",
        //   index: 1
        // },
        {
          name: "队伍选择",
          type: "primary",
          size: "mini",
          code: "TeamData",
          index: 1
        },
        {
          name: "队员选择",
          type: "primary",
          size: "mini",
          code: "TeamData",
          index: 2
        }
      ]
    },
    {
      title: "区县级派遣信息",
      name: "6",
      slot: "slot6",
      level: 3,
      btnList: [
        // {
        //   name: "队伍台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "TeamData",
        //   codeType: "see",
        //   index: 1
        // },
        {
          name: "队伍选择",
          type: "primary",
          size: "mini",
          code: "TeamData",
          index: 1
        },
        {
          name: "队员选择",
          type: "primary",
          size: "mini",
          code: "TeamData",
          index: 2
        }
      ]
    }
  ],
  applyTitle: {
    title: "审批信息",
    name: "7",
    slot: "slot7"
  },
  // 新增派遣的任务信息插槽
  taskTitleSlot:
  {
    title: "任务信息",
    name: "8",
    slot: "slot8"
  },
  // 命令单
  formConfig1: {
    formData: [
      {
        type: "select",
        label: "响应命令单",
        isDisabled: true,
        name: "sourceInfo",
        prop: "sourceInfoId",
        class: "sjgy",
        option: [],
        lableWidth: "147px"
      }
    ],
    rules: {
      sourceInfoId: [
        { required: true, message: "请选择响应命令单", trigger: "blur" }
      ]
    }
  },
  // 申请详情
  formConfig2: {
    formData: [
      {
        type: "input",
        label: "资源申请单",
        isDisabled: true,
        prop: "resourceApplyName",
        class: "sjgy",
        lableWidth: "143px"
      },
      {
        type: "select",
        label: "申请单位",
        isDisabled: true,
        prop: "applyUnit",
        name: "applyUnit",
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "select",
        label: "需求等级",
        isDisabled: true,
        prop: "applyEvel",
        name: "applyEvelName",
        class: "third"
      },
      {
        type: "input",
        label: "需求人数",
        isDisabled: true,
        prop: "peopleCount",
        class: "third"
      },
      {
        type: "select",
        label: "受理单位及部门",
        isDisabled: true,
        prop: "acceptUnit",
        name: "acceptUnit",
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "目的地点",
        isDisabled: true,
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        isDisabled: true,
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "select",
        label: "联系人",
        isDisabled: true,
        prop: "contact",
        name: "contact",
        class: "third",
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "联系方式",
        isDisabled: true,
        prop: "contactWay",
        class: "third"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "需求描述",
        isDisabled: true,
        prop: "applyDescription",
        class: "sjgy",
        lableWidth: "143px"
      }
    ]
  },
  // 申请明细
  formConfig3: {
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "teamTypeName",
          label: "队伍类型",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "teamMajorName",
          label: "队伍专业",
          align: "center"
        },
        {
          prop: "memberMajorName",
          label: "人员专业",
          align: "center"
        },
        {
          prop: "memberAbilityName",
          label: "特种作业能力",
          align: "center"
        },
        {
          prop: "count",
          label: "需求人数",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "remark",
          label: "备注",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "180px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  // 省级派遣未选人明细
  formConfig4: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnits4", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef4", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select4", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "队伍人数",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third",
        lableWidth: "141px",
        show: true
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        lableWidth: "141px",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      tableData: []
    },
    // 表格信息
    teamListConfig: {
      formData: [
        {
          type: "input",
          label: "队伍名称",
          prop: "teamName",
          isDisabled: true,
          class: "third",
          lableWidth: "141px",
          show: true,
          hidden: true
        },
        {
          type: "input",
          label: "队伍类型",
          prop: "teamType",
          isDisabled: true,
          class: "third",
          show: true,
          hidden: true
        },
        {
          type: "input",
          label: "队伍专业",
          prop: "teamMajor",
          isDisabled: true,
          class: "third",
          lableWidth: "143px",
          show: true,
          hidden: true
        }
      ],
      // 表格信息
      table: {
        compRef: "zysq",
        isSequenceFlag: true,
        isShowPage: true,
        resetFlag: true,
        loading: false,
        tableData: [],
        autoHeight: true,
        columns: [
          {
            prop: "unit",
            label: "所属单位",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "name",
            label: "姓名",
            align: "center"
          },
          {
            prop: "contact",
            label: "联系方式",
            align: "center"
          },
          {
            prop: "memberType",
            label: "人员类型",
            align: "center"
          },
          {
            prop: "memberMajor",
            label: "人员专业",
            align: "center"
          },
          {
            prop: "memberAbility",
            label: "特种作业能力",
            align: "center",
            "min-width": "100px"
          },
          {
            prop: "accessTerm",
            label: "准入期限",
            align: "center",
            "min-width": "100px"
          }
        ],
        tableAttr: {
          height: "285px",
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      }
    }
  },
  // 地市级派遣明细
  formConfig5: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnits5", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef5", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select5", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "队伍人数",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third",
        lableWidth: "141px",
        show: true
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        lableWidth: "141px",
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      tableData: []
    },
    // 表格信息
    teamListConfig: {
      formData: [
        {
          type: "input",
          label: "队伍名称",
          prop: "teamName",
          isDisabled: true,
          class: "third",
          lableWidth: "141px",
          show: true,
          hidden: true
        },
        {
          type: "input",
          label: "队伍类型",
          prop: "teamType",
          isDisabled: true,
          class: "third",
          show: true,
          hidden: true
        },
        {
          type: "input",
          label: "队伍专业",
          prop: "teamMajor",
          isDisabled: true,
          class: "third",
          lableWidth: "143px",
          show: true,
          hidden: true
        }
      ],
      // 表格信息
      table: {
        compRef: "zysq",
        isSequenceFlag: true,
        isShowPage: true,
        resetFlag: true,
        loading: false,
        tableData: [],
        autoHeight: true,
        columns: [
          {
            prop: "unit",
            label: "所属单位",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "name",
            label: "姓名",
            align: "center"
          },
          {
            prop: "contact",
            label: "联系方式",
            align: "center"
          },
          {
            prop: "memberType",
            label: "人员类型",
            align: "center"
          },
          {
            prop: "memberMajor",
            label: "人员专业",
            align: "center"
          },
          {
            prop: "memberAbility",
            label: "特种作业能力",
            align: "center",
            "min-width": "100px"
          },
          {
            prop: "accessTerm",
            label: "准入期限",
            align: "center",
            "min-width": "100px"
          }
        ],
        tableAttr: {
          height: "285px",
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      }
    }
  },
  // 区县级派遣明细
  formConfig6: {
    formData: [
      {
        type: "input",
        label: "队伍人数",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third",
        lableWidth: "141px",
        show: true
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        lableWidth: "141px",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      tableData: []
    },
    // 表格信息
    teamListConfig: {
      formData: [
        {
          type: "input",
          label: "队伍名称",
          prop: "teamName",
          isDisabled: true,
          class: "third",
          lableWidth: "141px",
          show: true,
          hidden: true
        },
        {
          type: "input",
          label: "队伍类型",
          prop: "teamType",
          isDisabled: true,
          class: "third",
          show: true,
          hidden: true
        },
        {
          type: "input",
          label: "队伍专业",
          prop: "teamMajor",
          isDisabled: true,
          class: "third",
          lableWidth: "143px",
          show: true,
          hidden: true
        }
      ],
      // 表格信息
      table: {
        compRef: "zysq",
        isSequenceFlag: true,
        isShowPage: true,
        resetFlag: true,
        loading: false,
        tableData: [],
        autoHeight: true,
        columns: [
          {
            prop: "unit",
            label: "所属单位",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "name",
            label: "姓名",
            align: "center"
          },
          {
            prop: "contact",
            label: "联系方式",
            align: "center"
          },
          {
            prop: "memberType",
            label: "人员类型",
            align: "center"
          },
          {
            prop: "memberMajor",
            label: "人员专业",
            align: "center"
          },
          {
            prop: "memberAbility",
            label: "特种作业能力",
            align: "center",
            "min-width": "100px"
          },
          {
            prop: "accessTerm",
            label: "准入期限",
            align: "center",
            "min-width": "100px"
          }
        ],
        tableAttr: {
          height: "285px",
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      }
    }
  },
  formConfig7: {
    formData: [
      {
        type: "input",
        label: "审批意见",
        prop: "dispatchedApprovalOpinion",
        class: "sjgy"
      },
      {
        type: "input",
        label: "审批人",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalUser"
      },
      {
        type: "input",
        label: " 单位及部门",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalDept",
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "审批时间",
        class: "third",
        isDisabled: true,
        lableWidth: "141px",
        prop: "dispatchedApprovalTime"
      }
    ]
  },
  formConfig8: {
    formData: [
      {
        type: "input",
        label: "任务地点",
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "任务内容",
        prop: "applyDescription",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "接收单位",
        prop: "acceptUnit",
        name: "acceptUnitId",
        title: "接收单位选择",
        keyWord: "acceptUnits", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "acceptUnitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "acceptUnit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "联系人",
        prop: "contactId",
        name: "contact",
        class: "third",
        filterable: true,
        option: []
      },
      {
        type: "input",
        label: "联系方式",
        prop: "contactWay",
        isDisabled: true,
        class: "third"
      }
    ],
    rules: {
      destination: [
        { required: true, message: "请填写任务地点", trigger: "blur" }
      ],
      expectArrivalTime: [
        { required: true, message: "请选择期望到达时间", trigger: "change" }
      ],
      applyDescription: [
        { required: true, message: "请填写任务内容", trigger: "blur" }
      ],
      acceptUnit: [
        { required: true, message: "请选择接收单位", trigger: "change" }
      ],
      contactId: [
        { required: true, message: "请选择联系人", trigger: "change" }
      ]
    }
  }
};
// 车辆
export const CarFormDialog = {
  name: "CarData",
  dialogConfig: {
    title: "车辆派遣单",
    isShow: false,
    btnList: [
      {
        name: "下发",
        id: "submit",
        type: "primary",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  titleConfig: [
    {
      title: "信息来源",
      name: "1",
      slot: "slot1"
    },
    {
      title: "申请信息",
      name: "2",
      slot: "slot2"
    },
    {
      title: "需求明细表",
      name: "3",
      slot: "slot3"
    },
    {
      title: "省公司派遣信息",
      name: "4",
      slot: "slot4",
      level: 1,
      btnList: [
        // {
        //   name: "车辆台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "CarData",
        //   codeType: "see",
        //   index: 1
        // },
        {
          name: "车辆选择",
          type: "primary",
          size: "mini",
          code: "CarData",
          index: 2
        }
      ]
    },
    {
      title: "地市级单位信息",
      name: "5",
      slot: "slot5",
      level: 2,
      btnList: [
        // {
        //   name: "车辆台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "CarData",
        //   codeType: "see",
        //   index: 1
        // },
        {
          name: "车辆选择",
          type: "primary",
          size: "mini",
          code: "CarData",
          index: 2
        }
      ]
    },
    {
      title: "区县级单位信息",
      name: "6",
      slot: "slot6",
      level: 3,
      btnList: [
        // {
        //   name: "车辆台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "CarData",
        //   codeType: "see",
        //   index: 1
        // },
        {
          name: "车辆选择",
          type: "primary",
          size: "mini",
          code: "CarData",
          index: 2
        }
      ]
    }
  ],
  applyTitle: {
    title: "审批信息",
    name: "7",
    slot: "slot7"
  },
  taskTitleSlot:
  {
    title: "任务信息",
    name: "8",
    slot: "slot8"
  },
  formConfig1: {
    formData: [
      {
        type: "select",
        label: "响应命令单",
        isDisabled: true,
        prop: "sourceInfoId",
        name: "sourceInfo",
        class: "sjgy",
        option: [],
        lableWidth: "147px"
      }
    ],
    rules: {
      sourceInfoId: [
        { required: true, message: "请选择响应命令单", trigger: "blur" }
      ]
    }
  },
  formConfig2: {
    formData: [
      {
        type: "input",
        label: "资源申请单",
        isDisabled: true,
        prop: "resourceApplyName",
        class: "sjgy",
        lableWidth: "143px"
      },
      {
        type: "select",
        label: "申请单位",
        isDisabled: true,
        prop: "applyUnit",
        name: "applyUnit",
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "select",
        label: "需求等级",
        isDisabled: true,
        prop: "applyEvel",
        name: "applyEvelName",
        class: "third"
      },
      {
        type: "input",
        label: "需求数量总和",
        isDisabled: true,
        prop: "peopleCount",
        class: "third"
      },
      {
        type: "select",
        label: "受理单位及部门",
        isDisabled: true,
        prop: "acceptUnit",
        name: "acceptUnit",
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "目的地点",
        isDisabled: true,
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        isDisabled: true,
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "select",
        label: "联系人",
        isDisabled: true,
        prop: "contact",
        name: "contact",
        class: "third",
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "联系方式",
        isDisabled: true,
        prop: "contactWay",
        class: "third"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "需求描述",
        isDisabled: true,
        prop: "applyDescription",
        class: "sjgy",
        lableWidth: "143px"
      }
    ]
  },
  formConfig3: {
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      autoHeight: true,
      tableData: [
        {
          vehiclePropertiesName: "",
          vehicleUsageName: "",
          vehicleTypeName: "",
          count: "",
          remark: ""
        }
      ],
      columns: [
        {
          prop: "vehiclePropertiesName",
          label: "车辆性质",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "vehicleUsageName",
          label: "车辆用途",
          align: "center"
        },
        {
          prop: "vehicleTypeName",
          label: "车辆类型",
          align: "center"
        },
        {
          prop: "count",
          label: "需求数量",
          align: "center"
        },
        {
          prop: "remark",
          label: "备注",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "180px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig4: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnits4", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef4", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select4", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third",
        show: true
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    // 表格信息
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "unit",
          label: "所属单位",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "vehicleProperties",
          label: "车辆性质",
          align: "center"
        },
        {
          prop: "vehicleUsage",
          label: "车辆用途",
          align: "center"
        },
        {
          prop: "vehicleType",
          label: "车辆类型",
          align: "center"
        },
        {
          prop: "vehicleNum",
          label: "车牌号",
          align: "center"
        },
        {
          prop: "driver",
          label: "驾驶员",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "contact",
          label: "联系方式",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig5: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnits5", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef5", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select5", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third",
        show: true
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    // 表格信息
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "unit",
          label: "所属单位",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "vehicleProperties",
          label: "车辆性质",
          align: "center"
        },
        {
          prop: "vehicleUsage",
          label: "车辆用途",
          align: "center"
        },
        {
          prop: "vehicleType",
          label: "车辆类型",
          align: "center"
        },
        {
          prop: "vehicleNum",
          label: "车牌号",
          align: "center"
        },
        {
          prop: "driver",
          label: "驾驶员",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "contact",
          label: "联系方式",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig6: {
    formData: [
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third",
        show: true
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    // 表格信息
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "unit",
          label: "所属单位",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "vehicleProperties",
          label: "车辆性质",
          align: "center"
        },
        {
          prop: "vehicleUsage",
          label: "车辆用途",
          align: "center"
        },
        {
          prop: "vehicleType",
          label: "车辆类型",
          align: "center"
        },
        {
          prop: "vehicleNum",
          label: "车牌号",
          align: "center"
        },
        {
          prop: "driver",
          label: "驾驶员",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "contact",
          label: "联系方式",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig7: {
    formData: [
      {
        type: "input",
        label: "审批意见",
        prop: "dispatchedApprovalOpinion",
        class: "sjgy"
      },
      {
        type: "input",
        label: "审批人",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalUser"
      },
      {
        type: "input",
        label: " 单位及部门",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalDept",
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "审批时间",
        class: "third",
        isDisabled: true,
        lableWidth: "141px",
        prop: "dispatchedApprovalTime"
      }
    ]
  },
  formConfig8: {
    formData: [
      {
        type: "input",
        label: "任务地点",
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "任务内容",
        prop: "applyDescription",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "接收单位",
        prop: "acceptUnit",
        name: "acceptUnitId",
        title: "接收单位选择",
        keyWord: "acceptUnits", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "acceptUnitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "acceptUnit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "联系人",
        prop: "contactId",
        name: "contact",
        class: "third",
        filterable: true,
        option: []
      },
      {
        type: "input",
        label: "联系方式",
        prop: "contactWay",
        isDisabled: true,
        class: "third"
      }
    ],
    rules: {
      destination: [
        { required: true, message: "请填写任务地点", trigger: "blur" }
      ],
      expectArrivalTime: [
        { required: true, message: "请选择期望到达时间", trigger: "change" }
      ],
      applyDescription: [
        { required: true, message: "请填写任务内容", trigger: "blur" }
      ],
      acceptUnit: [
        { required: true, message: "请选择接收单位", trigger: "change" }
      ],
      contactId: [
        { required: true, message: "请选择联系人", trigger: "change" }
      ]
    }
  }
};
// 装备
export const EquipmentFormDialog = {
  name: "EquipmentData",
  dialogConfig: {
    title: "装备派遣单",
    isShow: false,
    btnList: [
      {
        name: "下发",
        id: "submit",
        type: "primary",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  titleConfig: [
    {
      title: "信息来源",
      name: "1",
      slot: "slot1"
    },
    {
      title: "申请信息",
      name: "2",
      slot: "slot2"
    },
    {
      title: "需求明细表",
      name: "3",
      slot: "slot3"
    },
    {
      title: "省公司派遣信息",
      name: "4",
      slot: "slot4",
      level: 1,
      btnList: [
        // {
        //   name: "装备台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "EquipmentData",
        //   codeType: "see",
        //   index: 0
        // },
        // {
        //   name: "装备仓库",
        //   type: "primary",
        //   size: "mini",
        //   code: "EquipmentData",
        //   index: 1
        // },
        {
          name: "装备选择",
          type: "primary",
          size: "mini",
          code: "EquipmentData",
          index: 2
        }
      ]
    },
    {
      title: "地市级单位信息",
      name: "5",
      slot: "slot5",
      level: 2,
      btnList: [
        // {
        //   name: "装备台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "EquipmentData",
        //   codeType: "see",
        //   index: 0
        // },
        // {
        //   name: "装备仓库",
        //   type: "primary",
        //   size: "mini",
        //   code: "EquipmentData",
        //   index: 1
        // },
        {
          name: "装备选择",
          type: "primary",
          size: "mini",
          code: "EquipmentData",
          index: 2
        }
      ]
    },
    {
      title: "区县级单位信息",
      name: "6",
      slot: "slot6",
      level: 3,
      btnList: [
        // {
        //   name: "装备台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "EquipmentData",
        //   codeType: "see",
        //   index: 0
        // },
        // {
        //   name: "装备仓库",
        //   type: "primary",
        //   size: "mini",
        //   code: "EquipmentData",
        //   index: 1
        // },
        {
          name: "装备选择",
          type: "primary",
          size: "mini",
          code: "EquipmentData",
          index: 2
        }
      ]
    }
  ],
  applyTitle: {
    title: "审批信息",
    name: "7",
    slot: "slot7"
  },
  // 新增派遣的任务信息插槽
  taskTitleSlot:
  {
    title: "任务信息",
    name: "8",
    slot: "slot8"
  },
  formConfig1: {
    formData: [
      {
        type: "select",
        label: "响应命令单",
        isDisabled: true,
        prop: "sourceInfoId",
        name: "sourceInfo",
        class: "sjgy",
        option: [],
        lableWidth: "147px"
      }
    ],
    rules: {
      sourceInfoId: [
        { required: true, message: "请选择响应命令单", trigger: "blur" }
      ]
    }
  },
  formConfig2: {
    formData: [
      {
        type: "input",
        label: "资源申请单",
        isDisabled: true,
        prop: "resourceApplyName",
        class: "sjgy"
      },
      {
        type: "select",
        label: "申请单位",
        isDisabled: true,
        prop: "applyUnit",
        name: "applyUnit",
        class: "third"
      },
      {
        type: "select",
        label: "需求等级",
        isDisabled: true,
        prop: "applyEvel",
        name: "applyEvelName",
        class: "third"
      },
      {
        type: "input",
        label: "需求数量总和",
        isDisabled: true,
        prop: "peopleCount",
        class: "third"
      },
      {
        type: "select",
        label: "受理单位及部门",
        isDisabled: true,
        prop: "acceptUnit",
        name: "acceptUnit",
        class: "third",
        lableWidth: "151px"
      },
      {
        type: "input",
        label: "目的地点",
        isDisabled: true,
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        isDisabled: true,
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "select",
        label: "联系人",
        isDisabled: true,
        prop: "contact",
        name: "contact",
        filterable: true,
        class: "third"
      },
      {
        type: "input",
        label: "联系方式",
        isDisabled: true,
        prop: "contactWay",
        class: "third"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "需求描述",
        isDisabled: true,
        prop: "applyDescription",
        class: "sjgy"
      }
    ]
  },
  formConfig3: {
    // 表格信息
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      autoHeight: true,
      tableData: [
        {
          largeCategoryName: "",
          middleCategoryName: "",
          smallCategoryName: "",
          count: "",
          remark: ""
        }
      ],
      columns: [
        {
          prop: "largeCategoryName",
          label: "装备大类",
          align: "center",
          "min-width": "120px"
        },
        // {
        //   prop: "middleCategoryName",
        //   label: "装备中类",
        //   align: "center"
        // },
        {
          prop: "smallCategoryName",
          label: "装备小类",
          align: "center"
        },
        {
          prop: "parametersName",
          label: "型号参数",
          align: "center"
        },
        {
          prop: "count",
          label: "需求数量",
          align: "center"
        },
        {
          prop: "remark",
          label: "备注",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "180px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig4: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnits4", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef4", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select4", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      // {
      //   type: "input",
      //   label: "仓库名称",
      //   prop: "warehouseName",
      //   isDisabled: true,
      //   class: "third",
      //   show: true
      // },
      // {
      //   type: "input",
      //   label: "仓库联系人",
      //   prop: "warehouseContact",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true,
      //   lableWidth: "143px"
      // },
      // {
      //   type: "input",
      //   label: "联系方式",
      //   prop: "warehouseContactWay",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true
      // },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third"
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "storageLocation",
          label: "存放地点",
          align: "left",
          "min-width": "120px"
        },
        {
          prop: "largeCategory",
          label: "装备大类",
          align: "center"
        },
        // {
        //   prop: "middleCategory",
        //   label: "装备中类",
        //   align: "center"
        // },
        {
          prop: "smallCategory",
          label: "装备小类",
          align: "center"
        },
        {
          prop: "equipName",
          label: "装备名称",
          align: "center"
        },
        {
          prop: "requireCount",
          label: "数量",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "equipStatus",
          label: "状态",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "manufactureDate",
          label: "生产日期",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig5: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnits5", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef5", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select5", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      // {
      //   type: "input",
      //   label: "仓库名称",
      //   prop: "warehouseName",
      //   isDisabled: true,
      //   class: "third",
      //   show: true
      // },
      // {
      //   type: "input",
      //   label: "仓库联系人",
      //   prop: "warehouseContact",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true
      // },
      // {
      //   type: "input",
      //   label: "联系方式",
      //   prop: "warehouseContactWay",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true,
      //   lableWidth: "143px"
      // },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third"
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "storageLocation",
          label: "存放地点",
          align: "left",
          "min-width": "120px"
        },
        {
          prop: "largeCategory",
          label: "装备大类",
          align: "center"
        },
        // {
        //   prop: "middleCategory",
        //   label: "装备中类",
        //   align: "center"
        // },
        {
          prop: "smallCategory",
          label: "装备小类",
          align: "center"
        },
        {
          prop: "equipName",
          label: "装备名称",
          align: "center"
        },
        {
          prop: "requireCount",
          label: "数量",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "equipStatus",
          label: "状态",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "manufactureDate",
          label: "生产日期",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig6: {
    formData: [
      // {
      //   type: "input",
      //   label: "仓库名称",
      //   prop: "warehouseName",
      //   isDisabled: true,
      //   class: "third",
      //   show: true
      // },
      // {
      //   type: "input",
      //   label: "仓库联系人",
      //   prop: "warehouseContact",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true,
      //   lableWidth: "143px"
      // },
      // {
      //   type: "input",
      //   label: "联系方式",
      //   prop: "warehouseContactWay",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true
      // },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third"
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "storageLocation",
          label: "存放地点",
          align: "left",
          "min-width": "120px"
        },
        {
          prop: "largeCategory",
          label: "装备大类",
          align: "center"
        },
        // {
        //   prop: "middleCategory",
        //   label: "装备中类",
        //   align: "center"
        // },
        {
          prop: "smallCategory",
          label: "装备小类",
          align: "center"
        },
        {
          prop: "equipName",
          label: "装备名称",
          align: "center"
        },
        {
          prop: "requireCount",
          label: "数量",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "equipStatus",
          label: "状态",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "manufactureDate",
          label: "生产日期",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig7: {
    formData: [
      {
        type: "input",
        label: "审批意见",
        prop: "dispatchedApprovalOpinion",
        class: "sjgy"
      },
      {
        type: "input",
        label: "审批人",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalUser"
      },
      {
        type: "input",
        label: " 单位及部门",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalDept",
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "审批时间",
        class: "third",
        isDisabled: true,
        lableWidth: "141px",
        prop: "dispatchedApprovalTime"
      }
    ]
  },
  formConfig8: {
    formData: [
      {
        type: "input",
        label: "任务地点",
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "任务内容",
        prop: "applyDescription",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "接收单位",
        prop: "acceptUnit",
        name: "acceptUnitId",
        title: "接收单位选择",
        keyWord: "acceptUnits", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "acceptUnitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "acceptUnit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "联系人",
        prop: "contactId",
        name: "contact",
        class: "third",
        filterable: true,
        option: []
      },
      {
        type: "input",
        label: "联系方式",
        prop: "contactWay",
        isDisabled: true,
        class: "third"
      }
    ],
    rules: {
      destination: [
        { required: true, message: "请填写任务地点", trigger: "blur" }
      ],
      expectArrivalTime: [
        { required: true, message: "请选择期望到达时间", trigger: "change" }
      ],
      applyDescription: [
        { required: true, message: "请填写任务内容", trigger: "blur" }
      ],
      acceptUnit: [
        { required: true, message: "请选择接收单位", trigger: "change" }
      ],
      contactId: [
        { required: true, message: "请选择联系人", trigger: "change" }
      ]
    }
  }
};
// 物资
export const MaterialFormDialog = {
  name: "MaterialData",
  dialogConfig: {
    title: "物资派遣单",
    isShow: false,
    btnList: [
      {
        name: "下发",
        id: "submit",
        type: "primary",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  titleConfig: [
    {
      title: "信息来源",
      name: "1",
      slot: "slot1"
    },
    {
      title: "申请信息",
      name: "2",
      slot: "slot2"
    },
    {
      title: "需求明细表",
      name: "3",
      slot: "slot3"
    },
    {
      title: "省公司派遣信息",
      name: "4",
      slot: "slot4",
      level: 1,
      btnList: [
        // {
        //   name: "物资台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "MaterialData",
        //   codeType: "see",
        //   index: 0
        // }
        // {
        //   name: "物资仓库",
        //   type: "primary",
        //   size: "mini",
        //   code: "MaterialData",
        //   index: 1
        // },
        {
          name: "物资选择",
          type: "primary",
          size: "mini",
          code: "MaterialData",
          index: 2
        }
      ]
    },
    {
      title: "地市级单位信息",
      name: "5",
      slot: "slot5",
      level: 2,
      btnList: [
        // {
        //   name: "物资台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "MaterialData",
        //   codeType: "see",
        //   index: 0
        // },
        // {
        //   name: "物资仓库",
        //   type: "primary",
        //   size: "mini",
        //   code: "MaterialData",
        //   index: 1
        // },
        {
          name: "物资选择",
          type: "primary",
          size: "mini",
          code: "MaterialData",
          index: 2
        }
      ]
    },
    {
      title: "区县级单位信息",
      name: "6",
      slot: "slot6",
      level: 3,
      btnList: [
        // {
        //   name: "物资台账",
        //   type: "primary",
        //   size: "mini",
        //   code: "MaterialData",
        //   codeType: "see",
        //   index: 0
        // },
        // {
        //   name: "物资仓库",
        //   type: "primary",
        //   size: "mini",
        //   code: "MaterialData",
        //   index: 1
        // },
        {
          name: "物资选择",
          type: "primary",
          size: "mini",
          code: "MaterialData",
          index: 2
        }
      ]
    }
  ],
  applyTitle: {
    title: "审批信息",
    name: "7",
    slot: "slot7"
  },
  // 新增派遣的任务信息插槽
  taskTitleSlot:
  {
    title: "任务信息",
    name: "8",
    slot: "slot8"
  },
  formConfig1: {
    formData: [
      {
        type: "select",
        label: "响应命令单",
        isDisabled: true,
        prop: "sourceInfoId",
        name: "sourceInfo",
        class: "sjgy",
        option: [],
        lableWidth: "147px"
      }
    ],
    rules: {
      sourceInfoId: [
        { required: true, message: "请选择响应命令单", trigger: "blur" }
      ]
    }
  },
  formConfig2: {
    formData: [
      {
        type: "input",
        label: "资源申请单",
        isDisabled: true,
        prop: "resourceApplyName",
        class: "sjgy"
      },
      {
        type: "select",
        label: "申请单位",
        isDisabled: true,
        prop: "applyUnit",
        name: "applyUnit",
        class: "third"
      },
      {
        type: "select",
        label: "需求等级",
        isDisabled: true,
        prop: "applyEvel",
        name: "applyEvelName",
        class: "third"
      },
      {
        type: "input",
        label: "需求数量总和",
        isDisabled: true,
        prop: "peopleCount",
        class: "third"
      },
      {
        type: "select",
        label: "受理单位及部门",
        isDisabled: true,
        prop: "acceptUnit",
        name: "acceptUnit",
        class: "third",
        lableWidth: "151px"
      },
      {
        type: "input",
        label: "目的地点",
        isDisabled: true,
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        isDisabled: true,
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "select",
        label: "联系人",
        isDisabled: true,
        prop: "contact",
        name: "contact",
        filterable: true,
        class: "third"
      },
      {
        type: "input",
        label: "联系方式",
        isDisabled: true,
        prop: "contactWay",
        class: "third"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "需求描述",
        isDisabled: true,
        prop: "applyDescription",
        class: "sjgy"
      }
    ]
  },
  formConfig3: {
    // 表格信息
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      autoHeight: true,
      tableData: [
        {
          largeCategoryName: "",
          middleCategoryName: "",
          smallCategoryName: "",
          count: "",
          remark: ""
        }
      ],
      columns: [
        {
          prop: "largeCategoryName",
          label: "物资大类",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "middleCategoryName",
          label: "物资中类",
          align: "center"
        },
        {
          prop: "smallCategoryName",
          label: "物资小类",
          align: "center"
        },
        {
          prop: "count",
          label: "需求数量",
          align: "center"
        },
        {
          prop: "remark",
          label: "备注",
          align: "center",
          "min-width": "100px"
        }
      ],
      tableAttr: {
        height: "180px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig4: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnit4", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef4", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select4", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third"
      },
      // {
      //   type: "input",
      //   label: "仓库名称",
      //   prop: "warehouseName",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true
      // },
      // {
      //   type: "input",
      //   label: "仓库联系人",
      //   prop: "warehouseContact",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true,
      //   lableWidth: "143px"
      // },
      // {
      //   type: "input",
      //   label: "联系方式",
      //   prop: "warehouseContactWay",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true
      // },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "largeCategory",
          label: "物资大类",
          align: "center"
        },
        {
          prop: "middleCategory",
          label: "物资中类",
          align: "center"
        },
        {
          prop: "smallCategory",
          label: "物资小类",
          align: "center"
        },
        {
          prop: "requireCount",
          label: "数量",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "measure",
          label: "计量单位",
          align: "center"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig5: {
    formData: [
      {
        type: "input",
        label: "资源派遣单",
        prop: "resourceDispatchedName",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "责任单位及部门",
        prop: "dutyUnit",
        name: "dutyUnitId",
        title: "责任单位及部门选择",
        keyWord: "dutyUnits5", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "dutyUnitRef5", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        isSplice: true, // 单位部门拼接
        ref: "dutyUnit_select5", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        lableWidth: "151px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "责任人",
        prop: "dutyPersonId",
        name: "dutyPerson",
        class: "third",
        option: [],
        filterable: true,
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third"
      },
      // {
      //   type: "input",
      //   label: "仓库名称",
      //   prop: "warehouseName",
      //   isDisabled: true,
      //   class: "third",
      //   show: true
      // },
      // {
      //   type: "input",
      //   label: "仓库联系人",
      //   prop: "warehouseContact",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true,
      //   lableWidth: "143px"
      // },
      // {
      //   type: "input",
      //   label: "联系方式",
      //   prop: "warehouseContactWay",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true
      // },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      autoHeight: true,
      tableData: [],
      columns: [
        {
          prop: "largeCategory",
          label: "物资大类",
          align: "center"
        },
        {
          prop: "middleCategory",
          label: "物资中类",
          align: "center"
        },
        {
          prop: "smallCategory",
          label: "物资小类",
          align: "center"
        },
        {
          prop: "requireCount",
          label: "数量",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "measure",
          label: "计量单位",
          align: "center"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig6: {
    formData: [
      // {
      //   type: "input",
      //   label: "仓库名称",
      //   prop: "warehouseName",
      //   isDisabled: true,
      //   class: "third",
      //   show: true
      // },
      // {
      //   type: "input",
      //   label: "仓库联系人",
      //   prop: "warehouseContact",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true,
      //   lableWidth: "143px"
      // },
      // {
      //   type: "input",
      //   label: "联系方式",
      //   prop: "warehouseContactWay",
      //   isDisabled: true,
      //   class: "third",
      //   show: true,
      //   hidden: true
      // },
      {
        type: "input",
        label: "调配数量总和",
        isDisabled: true,
        prop: "dispatchedNum",
        class: "third"
      },
      {
        type: "input",
        label: "派遣人",
        prop: "creator",
        isDisabled: true,
        class: "third"
      },
      {
        type: "input",
        label: "单位及部门",
        prop: "creatorUnit",
        isDisabled: true,
        class: "third",
        lableWidth: "143px"
      },
      {
        type: "dataPicker",
        label: "派遣时间",
        prop: "createTime",
        isDisabled: true,
        class: "third",
        dateType: "datetime"
      }
    ],
    rules: {
      resourceDispatchedName: [
        { required: true, message: "请填写资源派遣单名称", trigger: "blur" }
      ],
      dutyUnit: [
        { required: true, message: "请选择责任单位及部门", trigger: "change" }
      ],
      dutyPersonId: [
        { required: true, message: "请选择责任人", trigger: "change" }
      ]
    },
    table: {
      compRef: "zysq",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      tableData: [],
      autoHeight: true,
      columns: [
        {
          prop: "largeCategory",
          label: "物资大类",
          align: "center"
        },
        {
          prop: "middleCategory",
          label: "物资中类",
          align: "center"
        },
        {
          prop: "smallCategory",
          label: "物资小类",
          align: "center"
        },
        {
          prop: "requireCount",
          label: "数量",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "measure",
          label: "计量单位",
          align: "center"
        }
      ],
      tableAttr: {
        height: "285px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          "font-size": "16px"
        }
      }
    }
  },
  formConfig7: {
    formData: [
      {
        type: "input",
        label: "审批意见",
        prop: "dispatchedApprovalOpinion",
        class: "sjgy"
      },
      {
        type: "input",
        label: "审批人",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalUser"
      },
      {
        type: "input",
        label: " 单位及部门",
        class: "third",
        isDisabled: true,
        prop: "dispatchedApprovalDept",
        lableWidth: "143px"
      },
      {
        type: "input",
        label: "审批时间",
        class: "third",
        isDisabled: true,
        lableWidth: "141px",
        prop: "dispatchedApprovalTime"
      }
    ]
  },
  formConfig8: {
    formData: [
      {
        type: "input",
        label: "任务地点",
        prop: "destination",
        class: "third"
      },
      {
        type: "dataPicker",
        label: "期望到达时间",
        prop: "expectArrivalTime",
        class: "third",
        dateType: "datetime"
      },
      {
        type: "input",
        label: "",
        isDisabled: true,
        prop: "",
        class: "third"
      },
      {
        type: "textarea",
        label: "任务内容",
        prop: "applyDescription",
        class: "sjgy"
      },
      {
        type: "selectTree",
        label: "接收单位",
        prop: "acceptUnit",
        name: "acceptUnitId",
        title: "接收单位选择",
        keyWord: "acceptUnits", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "acceptUnitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "acceptUnit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "third",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "联系人",
        prop: "contactId",
        name: "contact",
        class: "third",
        filterable: true,
        option: []
      },
      {
        type: "input",
        label: "联系方式",
        prop: "contactWay",
        isDisabled: true,
        class: "third"
      }
    ],
    rules: {
      destination: [
        { required: true, message: "请填写任务地点", trigger: "blur" }
      ],
      expectArrivalTime: [
        { required: true, message: "请选择期望到达时间", trigger: "change" }
      ],
      applyDescription: [
        { required: true, message: "请填写任务内容", trigger: "blur" }
      ],
      acceptUnit: [
        { required: true, message: "请选择接收单位", trigger: "change" }
      ],
      contactId: [
        { required: true, message: "请选择联系人", trigger: "change" }
      ]
    }
  }
};

